package com.technologys.ctrl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.technologys.pojo.UserPojo;

@Controller
@RequestMapping(value="user")
public class UserCtrl {

	private static final Logger log = LoggerFactory.getLogger(UserCtrl.class);
	private static final String PATH = "user/";
	
	@RequestMapping(value="register", method=RequestMethod.POST)
	public @ResponseBody String register(UserPojo user) {
		log.info("卧槽");
		return "我操";
	}
	
	@RequestMapping(value="register", method=RequestMethod.GET)
	public String register() {
		return PATH + "register";
	}
}